﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CompositePattern.GeneralDemo
{
    /// <summary>
    /// 樹葉構件
    /// </summary>
    public class Leaf : Component
    {
        public override string doSomething()
        {
            return "leaf tree";
        }
    }
}
